package com.lynchcms.cms.dao;

import java.util.List;
import java.util.Set;

import org.springframework.security.core.GrantedAuthority;

import com.lynchcms.cms.model.entity.CmsAdmin;
import com.lynchcms.cms.model.entity.CmsAuthoritiy;
import com.lynchcms.core.dao.BaseDao;

/**
 * 管理员业务处理DAO--Inf
 * 
 * @author Lynch
 */
public interface CmsAdminDao extends BaseDao<CmsAdmin, Long> {

	/**
	 * 根据用户名字查询用户 
	 */
	CmsAdmin getByName(String userName);
	
	/**
	 * 根据用户名权限信息组装成框架需要的权限
	 * 
	 * @return 权限信息
	 */
//	List<GrantedAuthority> getAuthByUserName(CmsAdmin cmsAdmin);
	
}
